package pl.polidea.imf.blackberry.util;

import java.io.IOException;

import javax.microedition.io.file.FileConnection;

public class FileConnectionHelper {
	
	public static boolean closeConnection(FileConnection fcon){
		boolean result = false;
		if(fcon!=null){
			try{
				fcon.close();
				result = true;
			}
			catch(IOException e){
				/*ignore*/
			}
		}
		return result;
	}
	
}
